package yagwl.client.model.fnd;

import com.google.gwt.user.client.rpc.IsSerializable;

public class SessionDto extends RpcStatus implements IsSerializable {
  private String loginURL;
  private String logoutURL;
  private boolean userAdmin;
  private boolean userLoggedIn;
  private String email;
  private String nickname;
  private String userId;
  private boolean impersonated; // unused
  private String sessionToken;

  // private HashMap<String, String> attr = new HashMap<String, String>();

  public String getLoginURL() {
    return loginURL;
  }

  public void setLoginURL(String loginURL) {
    this.loginURL = loginURL;
  }

  public String getLogoutURL() {
    return logoutURL;
  }

  public void setLogoutURL(String logoutURL) {
    this.logoutURL = logoutURL;
  }

  public boolean isUserAdmin() {
    return userAdmin;
  }

  public void setUserAdmin(boolean userAdmin) {
    this.userAdmin = userAdmin;
  }

  public boolean isUserLoggedIn() {
    return userLoggedIn;
  }

  public void setUserLoggedIn(boolean userLoggedIn) {
    this.userLoggedIn = userLoggedIn;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getUserId() {
    return userId;
  }

  public boolean isImpersonated() {
    return impersonated;
  }

  public void setImpersonated(boolean impersonated) {
    this.impersonated = impersonated;
  }

  public String getSessionToken() {
    return sessionToken;
  }

  public void setSessionToken(String sessionToken) {
    this.sessionToken = sessionToken;
  }

  // public String getAttribute(String name) {
  // return attr.get(name);
  // }

  // public void putAttribute(String name, String value) {
  // attr.put(name, value);
  // }

}
